#ifndef   __TMHandler__H__
#define   __TMHandler__H__
 
#include "rapidjson/document.h"
#include "rapidjson/prettywriter.h"  
#include "rapidjson/writer.h"
#include "rapidjson/stringbuffer.h"
#include <iostream>
using namespace rapidjson;
using namespace std;

int pub_json_to_mtcp(const char *data, char *type, char *ID, char *Val);
void req_json_to_mtcp(const char *data, char *mes);
string mtcp_to_json(const char *data);
void Getaddress(char *type, char *_ip, int &_port);

#endif